Get all orders
GET/orders
Returns all the orders owned by the authorized user
Request
Header Parameters
OneBasket API Key
Responses
- 200
The request has succeeded.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- Array [
- ]
- ]
- Array [
- KioskCollection
- QrCode
- ]
- ]
- Array [
- ]
The id of the order
providerOrders object[]required
A list of all providers that products have been purchased from.
lineItems object[]required
A list of all line items included in the provider order.
The type of a line item. OneBasket supports many different product types that can be purchased.
totalPrice object
totalTax object
ticketing object
A ticketing line item represents a product that is related to ticketing.
Possible values: [TicketedEvent]
The type of ticketing product this line item represents
Possible values: [SportsMatch]
If a TicketEvent type, then this indicates what sort of ticketed event.
sportsMatch object
If the event type is 'SportsMatch', contains additional information about the line item's event
The date of the match, including time
competition objectrequired
Which competition the match is part of
The name of the competition (Premier League 2021, Champions League 2021, etc)
The season of the competition (2019/20, 2020/21, etc)
The type of competition (Premier League, Champions League, etc)
hostTeam objectrequired
The home team
The id of the team
The name of the team
The team crest
opponentTeam objectrequired
The away team
The id of the team
The name of the team
The team crest
tickets object[]required
A list of tickets that have been added to the basket for this event.
The id of the ticket
The id of the seat being purchased. This is the id that the provider uses to identify the seat.
The seat category of the seat being purchased.
The tariff of the seat being purchased.
The section the seat is in
The row the seat is in
The seat number
price objectrequired
The price of the ticket, including any taxes.
consumable object
A consumable line item represents a product that a human can consume (eat or drink).
The number of instances of this product that was purchased.
unitPrice objectrequired
The price of a single instance of this product, including any taxes.
Optional - The product group that the product belongs to. For consumables, this typically represents a menu.
Optional - The kiosk from which this product is being purchased from.
Optional - The time stream that this product is being purchased within. For consumables, this typically represents a time period during an event, such as presales, early bird, half time, etc.
Optional - The time that this line item is valid until. This represents how long the current price of the line item is valid for. Pricing of products can change if they are in a time stream.
The title of the product. For example, 'Cheeseburger'.
The description of the product. For example, 'A delicious cheeseburger with a beef patty, cheese, lettuce, tomato, and onion.'
The allergens that the product contains. For example, 'Gluten, Dairy, Eggs'.
The image of the product.
The calories of the product.
totalPrice object
totalTax object
deliveryMethods object[]required
A list of dilevery methods used to fulfil the order.
Possible values: [KioskCollection]
The type of the delivery method
Possible values: [KioskCollection]
The name of the kiosk which the order can be collected from
scannable object
Represents a scannable item that can be used to identify a customer's order.
Possible values: [QrCode]
The type of scannable
Possible values: [QrCode]
The data encoded in the QR code. Use this to generate the QR code.
events object[]required
A list of all events that have occurred for this order, across all providers. Events are ordered by time.
The id of the event
{
"id": "string",
"created": "string",
"providerOrders": [
{
"id": "string",
"lineItems": [
{
"id": "string",
"type": "Ticketing",
"productId": "string",
"totalPrice": {
"minorUnits": 0,
"currencyCode": "string",
"precision": 0
},
"totalTax": {
"minorUnits": 0,
"currencyCode": "string",
"precision": 0
},
"ticketing": {
"type": "TicketedEvent",
"eventType": "SportsMatch",
"sportsMatch": {
"matchDate": "string",
"competition": {
"name": "string",
"season": "string",
"competitionType": "string"
},
"hostTeam": {
"id": "string",
"name": "string",
"logoImageUrl": "string"
},
"opponentTeam": {
"id": "string",
"name": "string",
"logoImageUrl": "string"
}
},
"tickets": [
{
"id": "string",
"providerSeatId": "string",
"seatCategory": "string",
"tariff": "string",
"section": "string",
"row": "string",
"seat": "string",
"price": {
"minorUnits": 0,
"currencyCode": "string",
"precision": 0
}
}
]
},
"consumable": {
"quantity": 0,
"unitPrice": {
"minorUnits": 0,
"currencyCode": "string",
"precision": 0
},
"productGroupId": "string",
"kioskId": "string",
"timestreamId": "string",
"validUntil": "string",
"title": "string",
"description": "string",
"allergens": "string",
"image": "string",
"calories": 0
}
}
],
"totalPrice": {
"minorUnits": 0,
"currencyCode": "string",
"precision": 0
},
"totalTax": {
"minorUnits": 0,
"currencyCode": "string",
"precision": 0
},
"deliveryMethods": [
{
"type": "KioskCollection"
}
]
}
],
"events": [
{
"providerOrderId": "string",
"category": "Processing",
"eventTime": "string",
"receivedTime": "string",
"id": "string"
}
]
}